package com.bjpowernode.dataservice.impl;

import com.bjpowernode.mapper.FinanceAccountMapper;
import com.bjpowernode.model.FinanceAccount;
import com.bjpowernode.service.FinanceAccountService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@DubboService(interfaceClass = FinanceAccountService.class)
public class FinanceAccountServiceImpl implements FinanceAccountService {


    @Resource
    private FinanceAccountMapper financeAccountMapper;
    @Override
    public FinanceAccount queryAccountByUid(Integer uid) {
        FinanceAccount financeAccount=null;
        if (uid!=null){
            financeAccount =financeAccountMapper.selectByUid(uid);
        }
        return financeAccount;
    }
}
